import Editor from "../editor";
import {Operation} from "../types";

export class RemoveTextOperation implements Operation {
    private startIndex_: number;
    private endIndex_: number;

    constructor(startIndex: number, endIndex: number) {
        this.startIndex_ = startIndex
        this.endIndex_ = endIndex
    }

    apply(editor: Editor): void {
        editor.getTextModel().remove(this.startIndex_, this.endIndex_)
    }

    inverse(): void {
    }

}